{
  "collections": [
    {
      "id": "${name}",
      "title": "${title}",
      "description": "${description}",
      "crs": [
        "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
      ],
      "stac_version": "$${env('stac_version', '1.0.0')}",
      "license": "${license}",
      "type": "Collection",
      "extent": {
        "spatial": {
          "bbox": [
            [
              "$${minx(footprint)}",
              "$${miny(footprint)}",
              "$${maxx(footprint)}",
              "$${maxy(footprint)}"
            ]
          ]
        },
        "temporal": {
          "interval": [
            [
              "${timeStart}",
              "${timeEnd}"
            ]
          ]
        }
      },
      "cube:dimensions": {
        "x": {
          "type": "spatial",
          "axis": "x",
          "extent": "$${eoSummaries('bounds',eo:identifier,'x')}",
          "reference_system": 4326
        },
        "y": {
          "type": "spatial",
          "axis": "y",
          "extent": "$${eoSummaries('bounds',eo:identifier,'y')}",
          "reference_system": 4326
        },
        "time": {
          "type": "temporal",
          "extent": [
            "$${eoSummaries('min',eo:identifier,'timeStart')}",
            "$${eoSummaries('max',eo:identifier,'timeEnd')}"
          ],
          "step": "P5D"
        }
      },
      "providers": [
        {
          "name": "GeoServer",
          "url": "https://www.geoserver.org/",
          "roles": [
            "host"
          ]
        }
      ],
      "assets": "${assets}",
      "links": [
        {
          "href": "$${serviceLink('ogc/stac/v1/collections/%s', name)}",
          "rel": "self",
          "type": "application/json"
        },
        {
          "href": "$${serviceLink('ogc/stac/v1')}",
          "rel": "root",
          "type": "application/json"
        },
        {
          "href": "$${serviceLink('ogc/stac/v1')}",
          "rel": "parent",
          "type": "application/json"
        },
        {
          "href": "$${serviceLink('ogc/stac/v1/collections/%s/items', name)}",
          "rel": "items",
          "type": "application/geo+json"
        },
        {
          "href": "$${serviceLink('ogc/stac/v1/collections/%s/queryables', name)}",
          "rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
          "type": "application/schema+json"
        },
        {
          "href": "$${serviceLink('ogc/stac/v1/collections/%s/sortables', name)}",
          "rel": "http://www.opengis.net/def/rel/ogc/1.0/sortables",
          "type": "application/schema+json"
        }
      ]
    }
  ]
}